package com.res.simulator.transformer;

import java.util.ArrayList;
import java.util.List;

import com.res.common.transformer.BaseTransformer;
import com.res.simulator.model.RestServiceModel;
import com.res.simulator.view.ResultView;
import com.sip.dbadapter.dao.domain.ScanTypeRest;

public class RestServiceTransformer implements BaseTransformer<RestServiceModel, List<ResultView>, ScanTypeRest> {

    public ScanTypeRest transformModelToDomian(RestServiceModel model) throws Exception {

        // TODO Auto-generated method stub
        model.getMessage();
        model.getContent();
        ScanTypeRest scanTypeRest = new ScanTypeRest();
        Long scanTypeId = Long.parseLong(model.getApiId());
        scanTypeRest.setScanTypeId(scanTypeId);
        return scanTypeRest;
    }

    public List<ResultView> transformDomianToView(ScanTypeRest scanTypeRest) throws Exception {

        // TODO Auto-generated method stub
        ResultView restServiceView = new ResultView();
        String methodUrl = scanTypeRest.getMethodUrl();
        List<ResultView> resultViewList = new ArrayList<ResultView>();
        return resultViewList;
    }

}
